package org.lc.stk.web.dto.question;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Schema(description = "判断题数据传输对象")
public class JudgmentQuestionDTO extends QuestionResponseDTO {
    
    @Schema(description = "题干富文本内容")
    @NotBlank(message = "题干不能为空")
    private String stemContent;
    
    @Schema(description = "正确答案")
    @NotNull(message = "答案不能为空")
    private Boolean correct;

    // 添加无参构造函数
    public JudgmentQuestionDTO() {
        super();
    }

    // Getters and Setters
    public String getStemContent() {
        return stemContent;
    }

    public void setStemContent(String stemContent) {
        this.stemContent = stemContent;
    }

    public Boolean isCorrect() {
        return correct;
    }

    public void setCorrect(Boolean correct) {
        this.correct = correct;
    }
}